package com.ggggeeennn.studentUser.service.Impl;

import com.ggggeeennn.common.core.domain.AjaxResult;
import com.ggggeeennn.exam.domain.ExamManage;
import com.ggggeeennn.studentUser.domain.Message;
import com.ggggeeennn.studentUser.mapper.MessageMapper;
import com.ggggeeennn.studentUser.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

@Service
public class MessageServiceImpl implements MessageService {
    @Autowired
    MessageMapper messageMapper;

    public List<ExamManage> getMessageList(){
       return  messageMapper.getMessageList();
    }

    public int addMessage(Message message){
        message.setTime(LocalDateTime.now());
        return messageMapper.addMessage(message);
    }


}
